'import imports.micReader'

import micReader


# test 1 de detectar LA
#    tt = micReader.SecondBySecond()
#    
#    for i in range(10000):
#        tt.listen()
#        if i == 0:
#            tt.reportate()


# test 2 mostrar codigos elegidos

#lector = micReader.RawMicReader()
#lector = micReader.RawFileReader('C:\prbaTaptester.wav')
#lector = micReader.RawFileReader('./resources/prbaTaptester.wav')
#lector = micReader.RawFileReader('./resources/prba 3 nums lento.wav')
#lector = micReader.RawFileReader('./resources/prba 3 nums rapido.wav')
lector = micReader.RawFileReader('./resources/generatedHelloWorld2.wav')
#lector = micReader.RawFileReader('./resources/generated.wav')

tt = micReader.SoundReader(lector)
#tt = micReader.SecondBySecond(lector)

for i in range(10000):
    if i == 0:
        tt.reportate()
    if tt.available:
        tt.listen()
tt.imprimirMensaje()

